package cn.tedu.hotel.serve.mapper;

import cn.tedu.hotel.serve.pojo.dto.ThemeImgDTO;
import cn.tedu.hotel.serve.pojo.entity.Theme;
import cn.tedu.hotel.serve.pojo.entity.ThemeImg;
import cn.tedu.hotel.serve.pojo.vo.ThemeImgVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ThemeMapper {

    Long getIdByName(String themeName);

    List<Theme> getTheme();

    int addThemeImg(ThemeImgDTO themeImgDTO);

    List<ThemeImgVO> getThemeImgList();

    List<ThemeImgVO> getThemeImgListByThemeId(Long themeId);

    ThemeImgVO getThemeImgById(Long id);

    void deleteById(Long id);

    void update(ThemeImg themeImg);
}
